#ifndef _XTHREAD_H
#define _XTHREAD_H

#include "pthread.h"

#define Thread_Attr_Detached PTHREAD_CREATE_DETACHED

struct xthread{
	pthread_t thrd;
	void* args;
};

extern struct xthread* thread_start(void* (*run)(void *arg),void *args);
extern int thread_stop(struct xthread* thread);



#endif /** end of headfile**/
